package com.qiyu.mall.user.interfaces.service;

import com.qiyu.mall.user.interfaces.dto.WorkerDTO;

import java.util.HashMap;
import java.util.List;

/**
 * @author idea
 * @data 2020/1/23
 */
public interface WorkerService {


    /**
     * 创建后台登录token
     * @param workerName
     * @return
     */
    String createToken(Integer workerName);

    /**
     * 登录
     *
     * @param workerName
     * @param workerPwd
     * @return
     */
    String login(Integer workerName, String workerPwd);

    /**
     * 添加管理员
     *
     * @param workerDTO
     * @return
     */
    Boolean addOne(WorkerDTO workerDTO);

    /**
     * 添加管理员
     *
     * @return
     */
    List<WorkerDTO> selectAll();

    /**
     * 批量查询
     *
     * @return
     */
    HashMap<Integer, WorkerDTO> batchQuery(List<Integer> workerIdList);
}
